package com.xgk.boot.module.infra.idempotent.annotate;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

/**
 * @description 加上这个注解可以将参数设置为key
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface RequestLock {
    String delimiter() default "::";
    String prefix() default "ReqLock";
    long expire() default 60l;
    TimeUnit timeUnit() default TimeUnit.SECONDS;
}